﻿<UserControl x:Class="Fantacid303.ProcessAffinityControl.Manager.UserControls.ConfigurationRuleEdit"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
			 xmlns:genCol="clr-namespace:System.Collections.Generic;assembly=mscorlib"
			 xmlns:sys="clr-namespace:System;assembly=mscorlib"
			 xmlns:usercontrols="clr-namespace:Fantacid303.ProcessAffinityControl.Manager.UserControls"
			 xmlns:valueProviders="clr-namespace:Fantacid303.ProcessAffinityControl.Manager.ValueProviders"
			 xmlns:cmn="clr-namespace:Fantacid303.ProcessAffinityControl.Common;assembly=Fantacid303.ProcessAffinityControl.Common" mc:Ignorable="d" d:DesignHeight="260" d:DesignWidth="492">
	<UserControl.Resources>
		<valueProviders:ProcessorAffinityValueProvider x:Key="processorAffinityValueProvider" />
		
		<!--
		<ObjectDataProvider MethodName="GetValues"  ObjectType="{x:Type sys:Enum}" x:Key="processAffinityTypes">
			<ObjectDataProvider.MethodParameters>
				<x:Type TypeName="cmn:ProcessorAffinityType"/>
			</ObjectDataProvider.MethodParameters>
		</ObjectDataProvider>
		-->
		<ObjectDataProvider MethodName="GetAll"  ObjectType="{x:Type valueProviders:ProcessorAffinityValueProvider}" x:Key="processAffinityTypes"  >

		</ObjectDataProvider>		
		
		
	</UserControl.Resources>
    <Grid>
		<Label Content="Process Name:" Height="28" HorizontalAlignment="Left" Margin="12,12,0,0" Name="label1" VerticalAlignment="Top" Width="98" />
		<TextBox Height="23" HorizontalAlignment="Left" Margin="125,14,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" Text="{Binding ProcessName, Mode=TwoWay}" />
		<ComboBox Height="23" HorizontalAlignment="Left" Margin="125,48,0,0" Name="cboAffinity" VerticalAlignment="Top" Width="120" 
				  ItemsSource="{Binding Source={StaticResource processAffinityTypes}}" 
				  SelectedItem="{Binding Path=AffinityType, Mode=Default}"
				  IsSynchronizedWithCurrentItem="True" SelectionChanged="cboAffinity_SelectionChanged" />
		<Button Content="All" Height="23" HorizontalAlignment="Left" Margin="255,14,0,0" Name="button1" VerticalAlignment="Top" Width="23" Click="button1_Click" />
		<GroupBox Name="grpCustomAffinityMask" Margin="125,77,0,0" Header="Custom Affinity Mask" HorizontalAlignment="Left" Width="353" Height="174" VerticalAlignment="Top"
				 
				  >
			<Grid>
				<usercontrols:CustomAffinityMaskEdit x:Name="customAffinityMaskEdit" Margin="0,0,6,6" />
			</Grid>
		</GroupBox>

	</Grid>
</UserControl>
